<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <title>{{ $article['title'] }}</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="Keywords" content="{{ $article['title'] }}">
        <meta name="Description" content="{{ $article['title'] }}">
        <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">

        <script type="text/javascript" src="{{ asset('https://res.wx.qq.com/open/js/jweixin-1.4.0.js') }}" ></script>
        <script type="text/javascript">
            wx.config({
                debug: false,
                appId: "{{ $wx['appid'] }}",
                timestamp: {{ $wx['timestamp'] }},
                nonceStr: "{{ $wx['noncestr'] }}",
                signature: "{{ $wx['signature'] }}",
                jsApiList: [
                    'onMenuShareTimeline',
                    'onMenuShareAppMessage'
                ],
            });

            wx.ready(function(){
                var
                    s_title = '{{ $article['title'] }}',  // 分享标题
                    s_link = '',  // 分享链接
                    s_desc = '　',  //分享描述
                    s_imgUrl = '{{ asset('/style/images/white.jpg') }}'; // 分享图标

                //朋友圈
                wx.onMenuShareTimeline({
                    title: s_title, // 分享标题
                    link: s_link, // 分享链接
                    imgUrl: s_imgUrl, // 分享图标
                    success: function () {},
                    cancel: function () { }
                });

                //发送给好友
                wx.onMenuShareAppMessage({
                    title: s_title, // 分享标题
                    desc: s_desc, // 分享描述
                    link: s_link, // 分享链接
                    imgUrl: s_imgUrl, // 分享图标
                    type: '', // 分享类型,music、video或link，不填默认为link
                    dataUrl: '', // 如果type是music或video，则要提供数据链接，默认为空
                    success: function () {},
                    cancel: function () {}
                });

                //QQ好友
                wx.onMenuShareQQ({
                    title: s_title, // 分享标题
                    desc: s_desc, // 分享描述
                    link: s_link, // 分享链接
                    imgUrl: s_imgUrl, // 分享图标
                    success: function () { },
                    cancel: function () { }
                });

                //腾讯微博
                wx.onMenuShareWeibo({
                    title: s_title, // 分享标题
                    desc: s_desc, // 分享描述
                    link: s_link, // 分享链接
                    imgUrl: s_imgUrl, // 分享图标
                    success: function () { },
                    cancel: function () { }
                });
            });
        </script>
    </head>

    <body>
        {!! $article['content'] !!}
    </body>
</html>
